from math import *
x = 0
for m in range(2,100):
    for i in range(2,int(sqrt(m)+1)):
        if m % i ==0:
            break
    else:
        print(m,end='\t')
        x+=1
        if x == 10:
            print('\n')
            x = 0